-- GENERATED SPELL FOR [Warsong Marksman] --


function spell0_25244(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_25244', 624, 1)
end

function spell1_25244(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(45578,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25244', 645, 1)
end

function Sorts_25244(pUnit, Event)
local choix_sorts_25244 = math.random(0, 1)
if choix_sorts_25244 == 0 then
pUnit:RegisterEvent('spell0_25244', 1, 1)
end
if choix_sorts_25244 == 1 then
pUnit:RegisterEvent('spell1_25244', 1, 1)
end
end

function mob25244_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25244', math.random(1500, 3000), 1)
end

function mob25244_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25244_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25244_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25244, 1, 'mob25244_Action')
RegisterUnitEvent(25244, 2, 'mob25244_Leave')
RegisterUnitEvent(25244, 3, 'mob25244_Kill')
RegisterUnitEvent(25244, 4, 'mob25244_Die')
